<?php

namespace Modules\Production\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class SockTaskRequest extends FormRequest
{
    /**
     * rules
     *
     * @return array
     */
    public function rules(): array
    {
        return [
            'order_ids' => [
              'required',
            ],

            'uids' => [
                'required',
            ]
        ];
    }


    /**
     * messages
     *
     * @return string[]
     */
    public function messages(): array
    {
        return [
            'order_ids.required' => '备货任务单ID必填',
            'uids.required' => '指派人员必填',
        ];
    }
}
